package com.mastercard.labs

class TransactionCategoryService {

    def serviceMethod() {

    }
	
	def getCategoryId(transaction) {
		def txnCategory = TransactionCategory.findByTransaction(transaction)
		if (txnCategory == null) {
			return null
		}
		return txnCategory.category.id
	}
	
	def getCategory(transaction) {
		def txnCategory = TransactionCategory.findByTransaction(transaction)
		if (txnCategory == null) {
			return null
		}
		return txnCategory.category
	}
}
